package com.zhiche.lisa.bms.service.psup;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.psup.PsupOilprice;
import com.zhiche.lisa.bms.pojo.vo.psup.PsupOilPriceVO;

/**
 * <p>
 * 人送供方油价维护 服务类
 * </p>
 *
 * @author linbao
 * @since 2019-06-18
 */
public interface PsupOilpriceService extends IService<PsupOilprice> {

    /**
     * 分页查询
     *
     * @param page
     * @return
     */
    Page<PsupOilPriceVO> querySdOilPricePage(Page<PsupOilprice> page);

    /**
     * 新增
     *
     * @param psupOilprice
     */
    void createSdOilPrice(PsupOilPriceVO psupOilprice);

    /**
     * 校验有效期
     *
     * @param sdOilPriceVO
     * @return
     */
    Integer verifyEffectiveDate(PsupOilPriceVO sdOilPriceVO);

    /**
     * 查询匹配对应的市场油价
     *
     * @param sdOilPriceVO
     * @return
     */
    PsupOilprice matchEffectiveDateOilPrice(PsupOilPriceVO sdOilPriceVO);
}
